package com.chinasoft.tw.service.XiaoYQ;

import com.chinasoft.tw.pojo.Info;
import com.chinasoft.tw.service.TrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class XiaoYQ implements TrueWord {
    String name;
    List<String> wordList = new ArrayList<>();
    Random random = new Random();
    public XiaoYQ() {
        {
            this.name = "肖云强";
            wordList.add("1+1=0");
            wordList.add("1*1=1");
            wordList.add("1-1=你是沙沟");
        }
    }
    @Override
    public Info getTrueWord() {
        return new Info(name, wordList.get(random.nextInt(wordList.size())));
    }
}
